/* $Id: UserAnnouncementDomainObjectManagerImpl.java 
 * Copyright (C) 2011, TRAKHEES
 *  
 * Revision History
 *
 * Date  			Author 		    	Remarks
 * ---------------------------------------------------------------------------------
 *
 */
package ae.pcfc.etks.online.common.domain.manager.provider;

import java.util.Collection;
import java.util.List;

import ae.pcfc.etks.online.common.dao.UserAnnouncementDAO;
import ae.pcfc.etks.online.common.domain.UserAnnouncements;
import ae.pcfc.etks.online.common.domain.manager.UserAnnouncementDomainObjectManager;
import ae.pcfc.etks.online.common.exception.LookupException;
import ae.pcfc.etks.online.common.exception.PersistenceException;

public class UserAnnouncementDomainObjectManagerImpl implements UserAnnouncementDomainObjectManager {
	
	private UserAnnouncementDAO userAnnouncementDAO;
	
	/**
	 * setUserAnnouncementDAO
	 * 
	 * @param userAnnouncementDAO
	 * void
	 */
	public void setUserAnnouncementDAO(UserAnnouncementDAO userAnnouncementDAO) {
		this.userAnnouncementDAO = userAnnouncementDAO;
	}

	/**
	 * add
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#add(java.lang.Object)
	 * 
	 */
	public <T> void add(T obj) throws PersistenceException {
		this.userAnnouncementDAO.add((UserAnnouncements) obj);
	}

	/**
	 * update
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#update(java.lang.Object)
	 * 
	 */
	public <T> void update(T obj) throws PersistenceException {
		// TODO Auto-generated method stub

	}

	/**
	 * delete
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#delete(java.lang.Object)
	 * 
	 */
	public <T> void delete(T obj) throws PersistenceException {
		// TODO Auto-generated method stub

	}

	/**
	 * findByPrimaryKey
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#findByPrimaryKey(java.lang.String)
	 * 
	 */
	public <T> T findByPrimaryKey(String id) throws LookupException {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * findAll
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#findAll()
	 * 
	 */
	public <T> Collection<T> findAll() throws LookupException {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * findUserAnnouncementsByUserName
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.UserAnnouncementDomainObjectManager#findUserAnnouncementsByUserName(java.lang.String)
	 * 
	 */
	public List<UserAnnouncements> findUserAnnouncementsByUserName(String userName) {
		
		return this.userAnnouncementDAO.findUserAnnouncementsByUserName(userName);
	}

}
